from os import name
from django.urls import path
from . import views
app_name = 'newsApp'
urlpatterns = [
    path('news/<str:newName>/',views.news,name='news'), # 新闻列表
    # Reverse for 'newDetail' not found. 'newDetail' is not a valid view function or pattern name.
    path('newDetail/<int:id>/',views.newDetail,name='newDetail'), # 新闻详情页面 newDatail名字写错了 正确的是newDetail
    path('search/',views.search,name='search'), #新闻搜索对应的路由
]
